/*
 * codetable.h
 *
 *  Created on: 2019年10月23日
 *      Author: sanway
 */

#ifndef SRC_CODETABLE_H_
#define SRC_CODETABLE_H_
#include "database.h"

Display_Code Table_YX[]={
		{"Emergency stop button action failure",4,0x3003},//急停按钮动作故障
		{"Smoke fault",5,0},//烟感故障
		{"AC input breaker failure",6,0x4005},//交流输入断路器故障
		{"DC bus output contactor misoperation",7,0x3010},//直流母线输出接触器拒动/误动故障
		{"DC bus output fuse failure",8,0x3011},//直流母线输出熔断器故障
		{"Charging interface electronic lock failure",9,0x3018},//充电接口电子锁故障
		{"Charge point fan failure",10,0x3004},//充电桩风扇故障
		{"Arrester failure",11,0x400C},//避雷器故障
		{"Insulation monitoring failure",12,0x3014},//绝缘监测故障
		{"Battery polarity reverse connection fault",13,0x501A},//电池极性反接故障
		{"Vehicle control guidance fault during charging",14,0x301B},//充电中车辆控制导引故障
		{"Charging pile over temperature fault",15,0x3016},//充电桩过温故障
		{"Charging interface over temperature fault",16,0x3017},//充电接口过温故障
		{"Charging gun not homing alarm",17,0},//充电枪未归位告警
		{"BMS Communication failure",18,0x5000},//BMS 通信故障
		{"Input voltage overvoltage fault",19,0x4000},//输入电压过压故障
		{"Input voltage under fault",20,0x4000},//输入电压欠压故障
		{"DC bus output overvoltage fault",21,0x4001},//直流母线输出过压故障
		{"DC bus output under voltage fault",22,0x4003},//直流母线输出欠压故障
		{"DC bus output over-current fault",23,0x4002},//直流母线输出过流故障
		{"Charging module failure",24,0x300A},//充电模块故障
		{"Charging module AC input fault",25,0x300A},//充电模块交流输入故障
		{"Charging module AC input overvoltage fault",26,0x300A},//充电模块交流输入过压故障
		{"Charging module AC input under voltage fault",27,0x300A},//充电模块交流输入欠压故障
		{"Charging module AC input phase failure",28,0x4009},//充电模块交流输入缺相故障
		{"Charging module DC output short circuit fault",29,0x300A},//充电模块直流输出短路故障
		{"Charging module DC output over-current fault",30,0x300A},//充电模块直流输出过流故障
		{"Charging module DC output overvoltage fault",31,0x300A},//充电模块直流输出过压故障
		{"Charging module DC output under voltage fault",32,0x300A},//充电模块直流输出欠压故障
		{"Charging module over temperature fault",33,0x300B},//充电模块过温故障
		{"Charging module communication failure",34,0x3008},//充电模块通信故障
		{"Charging module fan failure",35,0x3005},//充电模块风扇故障
		{"Access control failure",42,0x3002},//门禁故障
		{"DC output contactor adhesion fault",43,0x300F},//直流输出接触器粘连故障
		{"Insulation monitoring alarm",44,0x3014},//绝缘监测告警
		{"Drain circuit failure",45,0x3015},//泄放回路故障
		{"Charging pile over temperature alarm",46,0x3016},//充电桩过温告警
		{"Charging gun over temperature alarm",47,0x3017},//充电枪过温告警
		{"AC input contactor actuation / maloperation fault",48,0x302A},//交流输入接触器据动/误动故障
		{"AC input contactor adhesion fault",49,0x302A},//交流输入接触器粘连故障
		{"Auxiliary power failure",50,0x3013},//辅助电源故障
		{"Parallel contactor actuation / maloperation fault",51,0x302D},//并联接触器据动/误动故障
		{"Adhesion fault of parallel contactor",52,0x302D},//并联接触器粘连故障
		{"NULL",0,0},
};

Display_Code Table_StopReason[] = {
		{"Data validity verification failed",1,0},//数据合法性校验失败
		{"Communication timeout between controller and tcu",2,0x301A},//充电控制器与计费控制单元通讯超时
		{"Version Verification not completed",3,0},//版本校验未完成
		{"Charging parameters not completed",4,0},//充电参数未完成
		{"Charging pile suspension service",5,0},//充电桩暂停服务
		{"Charging pile is in working state",6,0},//充电桩处于“工作” 状态
		{"Charging pile is in paused state",7,0},//充电桩处于“暂停”状态
		{"Charging pile and vehicle are not connected",8,0x100D},//充电桩与车辆处于未连接状态
		{"Emergency stop button action failure",9,0x3003},//急停按钮动作故障
		{"Access control failure",10,0x3002},//门禁故障
		{"Arrester failure",11,0x400C},//避雷器故障
		{"Smoke failure",12,0},//烟感故障
		{"Charging pile over temperature failure",13,0x3016},//充电桩过温故障
		{"Charging interface over temperature fault",14,0x3017},//充电接口过温故障
		{"Charging interface electronic lock failure",15,0x3018},//充电接口电子锁故障
		{"Insulation monitoring fault",16,0x3014},//绝缘监测故障
		{"Battery polarity reverse fault",17,0x501A},//电池极性反接故障
		{"BMS communication timeout failure",18,0x5000},//BMS 通信超时故障
		{"Input high voltage circuit breaker failure",19,0x4005},//输入高压断路器故障
		{"Input high voltage contactor according to the move / malfunction",20,0x302A},//输入高压接触器据动/误动故障
		{"Input high voltage contactor stuck fault",21,0x302A},//输入高压接触器粘连故障
		{"Output high voltage contactor according to the movement / malfunction",22,0x3010},//输出高压接触器据动/误动故障
		{"Output high voltage contactor stuck fault",23,0x300F},//输出高压接触器粘连故障
		{"Output high voltage fuse failure",24,0x3011},//输出高压熔断器故障
		{"Parallel contactor dynamic/misoperation fault",25,0x302D},//并联接触器据动/误动故障
		{"Parallel contactor stuck fault",26,0x302D},//并联接触器粘连故障
		{"Leakage loop failure",27,0x3015},//泄放回路故障
		{"Auxiliary power failure",28,0x3013},//辅助电源故障
		{"Charger module failure",29,0x300A},//充电机模块故障
		{"Input power failure",30,0x4000},//输入电源故障
		{"Output voltage overvoltage fault",31,0x4001},//输出电压过压故障
		{"Output voltage undervoltage fault",32,0x4003},//输出电压欠压故障
		{"Output current overcurrent fault",33,0x4002},//输出电流过流故障
		{"Output short circuit fault",34,0x4004},//输出短路故障
		{"No free charger module available",35,0x300C},//无空余充电机模块可用
		{"Charging pile other failure",36,0x301D},//充电桩其它故障

		{"Controlled pilot failure during charging",101,0x301B},//充电中控制导引故障
		{"Communication timeout between controller and tcu",102,0x301A},//充电控制器与计费控制单元通讯超时
		{"Emergency stop button action failure",103,0x3003},//急停按钮动作故障
		{"Access control failure",104,0x3002},//门禁故障
		{"Arrester failure",105,0x400C},//避雷器故障
		{"Smoke failure",106,0},//烟感故障
		{"AC input breaker failure",107,0x4005},//交流输入断路器故障
		{"AC input contactor dynamic/misoperation fault",108,0x302A},//交流输入接触器据动/误动故障
		{"AC input contactor stuck fault",109,0x302A},//交流输入接触器粘连故障
		{"AC input fault",110,0x4000},//交流输入故障
		{"Charging pile over temperature failure",111,0x3016},//充电桩过温故障
		{"Charging interface over temperature fault",112,0x3017},//充电接口过温故障
		{"Charging interface electronic lock failure",113,0x3018},//充电接口电子锁故障
		{"Insulation monitoring fault",114,0x3014},//绝缘监测故障
		{"Battery polarity reverse fault",115,0x501A},//电池极性反接故障
		{"DC output contactor driven/misoperation fault",116,0x3010},//直流输出接触器据动/误动故障
		{"DC output contactor stuck fault",117,0x300F},//直流输出接触器粘连故障
		{"DC output fuse failure",118,0x3011},//直流输出熔断器故障
		{"Parallel contactor dynamic/misoperation fault",119,0x302D},//并联接触器据动/误动故障
		{"Parallel contactor stuck fault",120,0x302D},//并联接触器粘连故障
		{"Leakage loop failure",121,0x3015},//泄放回路故障
		{"Auxiliary power failure",122,0x3013},//辅助电源故障
		{"Charger module failure",123,0x300A},//充电机模块故障
		{"DC output voltage overvoltage fault",124,0x4001},//直流输出电压过压故障
		{"DC output voltage undervoltage fault",125,0x4003},//输出电压欠压故障
		{"DC output current overcurrent fault",126,0x4002},//直流输出电流过流故障
		{"DC output short circuit fault",127,0x4004},//直流输出短路故障
		{"Battery max voltage less then pile out voltage",128,0},//电池最高允许充电电压小于充电机最小输出电压
		{"DC output contactor external voltage ≥10V before insulation monitoring",129,0x4006},//绝缘监测前直流输出接触器外侧电压≥10 V
		{"Voltage difference before starting charging >±5%",130,0},//启动充电前直流输出接触器外侧电压与通信报文电池电压相差＞±5%
		{"Before start output voltage is less than the minimum output voltage",131,0},//启启动充电前直流输出接触器外侧电压小于充电机最小输出电压
		{"Output voltage is greater than the maximum output voltage before startup",132,0},//启动充电前直流输出接触器外侧电压大于充电机最大输出电压
		{"Battery voltage is greater than the maximum allowable charging voltage",133,0},//电池端电压大于电池最高允许充电电压
		{"BRM packet reception timeout",134,0x500A},//BRM 报文接收超时
		{"BRM packet data item is abnormal",135,0x500A},//BRM 报文数据项异常（报文数据长度错误， BMS 通信协议版本号错误， 其他数据错误）
		{"BCP packet reception timeout",136,0x5001},//BCP 报文接收超时
		{"BCP packet data item is abnormal",137,0x5001},//"BCP 报文数据项异常（报文数据长度错误， 电池当前电压越限， 其他数据项错误）"
		{"BRO(0x00) packet reception timeout",138,0x5002},//BRO 报文（0x00） 接收超时
		{"BRO(0xAA) packet reception timeout",139,0x5002},//BRO 报文（0xAA） 接收超时
		{"Charging pile other failure",140,0x301D},//充电桩其它故障

		{"S2 switch action timed out",201,0},//S2 开关动作超时
		{"Controlled pilot failure during charging",205,0x301B},//充电中控制导引故障
		{"Communication timeout between controller and tcu",206,0x301A},//充电控制器与计费控制单元通讯超时
		{"Emergency stop button action failure",208,0x3003},//急停按钮动作故障
		{"Access control failure",209,0x3002},//门禁故障
		{"Arrester failure",210,0x400C},//避雷器故障
		{"Smoke failure",211,0},//烟感故障
		{"AC input breaker failure",212,0x4005},//交流输入断路器故障
		{"AC input contactor dynamic/misoperation fault",213,0x302A},//交流输入接触器据动/误动故障
		{"AC input contactor stuck fault",214,0x302A},//交流输入接触器粘连故障
		{"AC input fault",215,0x4000},//交流输入故障
		{"Charging pile over temperature failure",216,0x3016},//充电桩过温故障
		{"Charging interface over temperature fault",217,0x3017},//充电接口过温故障
		{"Charging interface electronic lock failure",218,0x3018},//充电接口电子锁故障
		{"DC output contactor driven/misoperation fault",219,0x3010},//直流输出接触器据动/误动故障
		{"DC output contactor stuck fault",220,0x300F},//直流输出接触器粘连故障
		{"DC output fuse failure",221,0x3011},//直流输出熔断器故障
		{"Parallel contactor dynamic/misoperation fault",222,0x302D},//并联接触器据动/误动故障
		{"Parallel contactor stuck fault",223,0x302D},//并联接触器粘连故障
		{"Leakage loop failure",224,0x3015},//泄放回路故障
		{"Auxiliary power failure",225,0x3013},//辅助电源故障
		{"Charger module failure",226,0x300A},//充电机模块故障
		{"DC output voltage overvoltage fault",227,0x4001},//直流输出电压过压故障
		{"DC output voltage undervoltage fault",228,0x4003},//输出电压欠压故障
		{"DC output current overcurrent fault",229,0x4002},//直流输出电流过流故障
		{"DC output short circuit fault",230,0x4004},//直流输出短路故障
		{"BCL timeout",231,0x5004},//电池充电需求报文（BCL）超时
		{"BCS timeout",232,0x5003},//电池充电总状态报文（BCS）超时
		{"BSM timeout",233,0x5007},//动力蓄电池状态信息（BSM）超时
		{"Single-voltage battery voltage overvoltage in BSM message",234,0x500F},//BSM 报文中单体动力蓄电池电压过压
		{"Single power battery in the BSM message is too low",235,0x500C},//BSM报文中单体动力蓄电池电压过低
		{"SOC is too high in BSM messages",236,0x5014},//BSM报文中 SOC 过高
		{"SOC is too low in BSM messages",237,0x5015},//BSM报文中 SOC 过低
		{"Charge over current in the message",238,0x5016},//报文中充电过电流
		{"The temperature of battery in the BSM message is too high",239,0x5017},//BSM 报文中动力蓄电池温度过高
		{"The insulation status is abnormal in the BSM packet",240,0x5018},//BSM 报文中动力蓄电池绝缘状态异常
		{"The connector connection status is abnormal in the BSM packet",241,0x5019},//BSM 报文中连接器连接状态异常
		{"BMS terminates charging normally",242,0x5011},//BMS 正常终止充电
		{"BMS abnormal termination charging",243,0x5011},//BMS 异常终止充电
		{"Charging pile judges other abnormal termination of BMS",244,0x5011},//充电桩判断BMS其它异常终止
		{"Charging pile other failure",245,0x301D},//充电桩其它故障

		{"Can communication failure-heartbeat interruption",400,0x301A},//can通信故障—心跳中断
		{"Can communication exception-telemetry interrupt",401,0x301A},//can通信异常—遥测中断
		{"Can communication exception-remote letter interruption",402,0x301A},//can通信异常—遥信中断
		{"Meter communication failure",403,0x300D},//电表通信故障
		{"Card reader exception",404,0x3007},//读卡器异常
		{"Controller charging command response timeout",405,0},//控制器充电指令回应超时
		{"Controller charging completion command timed out",406,0x302F},//控制器充电完成指令超时
		{"Gun not connected",407,0x100D},//枪未连接
		{"Pile is charging",408,0},//枪未连接
		{"Pile not ready",409,0},//匹配阶段未完成  桩未准备好
		{"This pile does not support co-filling or gun number error",410,0},//本桩不支持共充或枪编号错误
		{"Controller charge stop command response timeout",411,0},//控制器充电停止指令回应超时
		{"Controller charging stop complete instruction timeout",412,0},//控制器充电停止完成指令超时
		{"Unexpected",413,0},//充电意外停止Unexpected
		{"Common charge setting failed",414,0},//共充设置失败
		{"Authentication failure",415,0},//鉴权失败
		{"Network interruption",416,0x3001},//网络中断
		{"Invalid billing model",417,0},//无效计费模型

		{"NULL",0,0},
};




#endif /* SRC_CODETABLE_H_ */
